/*
 * Copyright (c) 2014. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package com.dc.gameserver.serverCore.model.dbsql.modelVo;

import java.io.Serializable;
import java.util.Date;

public class TRole implements Serializable {
    private Integer roleid;

    private Integer userid;

    private String rolename;

    private Byte rolesex;

    private Integer roletype;

    private Long roleage;

    private Integer rolemaxblood;

    private Integer rolemaxmagic;

    private Integer rolerecoverymagic;

    private Integer rolemaxshiled;

    private Integer roleattack;

    private Integer roledefence;

    private Byte rolefivetype;

    private Integer rolebasemaxmomentum;

    private Integer rolebaseminmomentum;

    private Integer rolesual;

    private Integer rolemaxsual;

    private Integer rolesualrecovery;

    private Integer roleexperiences;

    private Integer rolelevel;

    private Integer rolemurder;

    private Integer rolemurderlevel;

    private Integer stateid;

    private Integer rolesmalstate;

    private Integer rolemaxstate;

    private Integer rolestateexperies;

    private Integer roleluck;

    private Integer rolelingshinum;

    private Integer rolexianyunum;

    private Date rolecreattime;

    private Long soultime;

    private Integer storelingqi;

    private Integer storelingqilimit;

    private Byte lingquanlocation;

    private Byte gonglocation;

    private Long liqitime;  //灵气改变时间戳 灵脉 灵泉 蒲团更换 时间戳 重置

    private static final long serialVersionUID = 1L;

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename == null ? null : rolename.trim();
    }

    public Byte getRolesex() {
        return rolesex;
    }

    public void setRolesex(Byte rolesex) {
        this.rolesex = rolesex;
    }

    public Integer getRoletype() {
        return roletype;
    }

    public void setRoletype(Integer roletype) {
        this.roletype = roletype;
    }

    public Long getRoleage() {
        return roleage;
    }

    public void setRoleage(Long roleage) {
        this.roleage = roleage;
    }

    public Integer getRolemaxblood() {
        return rolemaxblood;
    }

    public void setRolemaxblood(Integer rolemaxblood) {
        this.rolemaxblood = rolemaxblood;
    }

    public Integer getRolemaxmagic() {
        return rolemaxmagic;
    }

    public void setRolemaxmagic(Integer rolemaxmagic) {
        this.rolemaxmagic = rolemaxmagic;
    }

    public Integer getRolerecoverymagic() {
        return rolerecoverymagic;
    }

    public void setRolerecoverymagic(Integer rolerecoverymagic) {
        this.rolerecoverymagic = rolerecoverymagic;
    }

    public Integer getRolemaxshiled() {
        return rolemaxshiled;
    }

    public void setRolemaxshiled(Integer rolemaxshiled) {
        this.rolemaxshiled = rolemaxshiled;
    }

    public Integer getRoleattack() {
        return roleattack;
    }

    public void setRoleattack(Integer roleattack) {
        this.roleattack = roleattack;
    }

    public Integer getRoledefence() {
        return roledefence;
    }

    public void setRoledefence(Integer roledefence) {
        this.roledefence = roledefence;
    }

    public Byte getRolefivetype() {
        return rolefivetype;
    }

    public void setRolefivetype(Byte rolefivetype) {
        this.rolefivetype = rolefivetype;
    }

    public Integer getRolebasemaxmomentum() {
        return rolebasemaxmomentum;
    }

    public void setRolebasemaxmomentum(Integer rolebasemaxmomentum) {
        this.rolebasemaxmomentum = rolebasemaxmomentum;
    }

    public Integer getRolebaseminmomentum() {
        return rolebaseminmomentum;
    }

    public void setRolebaseminmomentum(Integer rolebaseminmomentum) {
        this.rolebaseminmomentum = rolebaseminmomentum;
    }

    public Integer getRolesual() {
        return rolesual;
    }

    public void setRolesual(Integer rolesual) {
        this.rolesual = rolesual;
    }

    public Integer getRolemaxsual() {
        return rolemaxsual;
    }

    public void setRolemaxsual(Integer rolemaxsual) {
        this.rolemaxsual = rolemaxsual;
    }

    public Integer getRolesualrecovery() {
        return rolesualrecovery;
    }

    public void setRolesualrecovery(Integer rolesualrecovery) {
        this.rolesualrecovery = rolesualrecovery;
    }

    public Integer getRoleexperiences() {
        return roleexperiences;
    }

    public void setRoleexperiences(Integer roleexperiences) {
        this.roleexperiences = roleexperiences;
    }

    public Integer getRolelevel() {
        return rolelevel;
    }

    public void setRolelevel(Integer rolelevel) {
        this.rolelevel = rolelevel;
    }

    public Integer getRolemurder() {
        return rolemurder;
    }

    public void setRolemurder(Integer rolemurder) {
        this.rolemurder = rolemurder;
    }

    public Integer getRolemurderlevel() {
        return rolemurderlevel;
    }

    public void setRolemurderlevel(Integer rolemurderlevel) {
        this.rolemurderlevel = rolemurderlevel;
    }

    public Integer getStateid() {
        return stateid;
    }

    public void setStateid(Integer stateid) {
        this.stateid = stateid;
    }

    public Integer getRolesmalstate() {
        return rolesmalstate;
    }

    public void setRolesmalstate(Integer rolesmalstate) {
        this.rolesmalstate = rolesmalstate;
    }

    public Integer getRolemaxstate() {
        return rolemaxstate;
    }

    public void setRolemaxstate(Integer rolemaxstate) {
        this.rolemaxstate = rolemaxstate;
    }

    public Integer getRolestateexperies() {
        return rolestateexperies;
    }

    public void setRolestateexperies(Integer rolestateexperies) {
        this.rolestateexperies = rolestateexperies;
    }

    public Integer getRoleluck() {
        return roleluck;
    }

    public void setRoleluck(Integer roleluck) {
        this.roleluck = roleluck;
    }

    public Integer getRolelingshinum() {
        return rolelingshinum;
    }

    public void setRolelingshinum(Integer rolelingshinum) {
        this.rolelingshinum = rolelingshinum;
    }

    public Integer getRolexianyunum() {
        return rolexianyunum;
    }

    public void setRolexianyunum(Integer rolexianyunum) {
        this.rolexianyunum = rolexianyunum;
    }

    public Date getRolecreattime() {
        return rolecreattime;
    }

    public void setRolecreattime(Date rolecreattime) {
        this.rolecreattime = rolecreattime;
    }

    public Long getSoultime() {
        return soultime;
    }

    public void setSoultime(Long soultime) {
        this.soultime = soultime;
    }

    public Integer getStorelingqi() {
        return storelingqi;
    }

    public void setStorelingqi(Integer storelingqi) {
        this.storelingqi = storelingqi;
    }

    public Integer getStorelingqilimit() {
        return storelingqilimit;
    }

    public void setStorelingqilimit(Integer storelingqilimit) {
        this.storelingqilimit = storelingqilimit;
    }

    public Byte getLingquanlocation() {
        return lingquanlocation;
    }

    public void setLingquanlocation(Byte lingquanlocation) {
        this.lingquanlocation = lingquanlocation;
    }

    public Byte getGonglocation() {
        return gonglocation;
    }

    public void setGonglocation(Byte gonglocation) {
        this.gonglocation = gonglocation;
    }

    public Long getLiqitime() {
        return liqitime;
    }

    public void setLiqitime(Long liqitime) {
        this.liqitime = liqitime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TRole other = (TRole) that;
        return (this.getRoleid() == null ? other.getRoleid() == null : this.getRoleid().equals(other.getRoleid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getRolename() == null ? other.getRolename() == null : this.getRolename().equals(other.getRolename()))
            && (this.getRolesex() == null ? other.getRolesex() == null : this.getRolesex().equals(other.getRolesex()))
            && (this.getRoletype() == null ? other.getRoletype() == null : this.getRoletype().equals(other.getRoletype()))
            && (this.getRoleage() == null ? other.getRoleage() == null : this.getRoleage().equals(other.getRoleage()))
            && (this.getRolemaxblood() == null ? other.getRolemaxblood() == null : this.getRolemaxblood().equals(other.getRolemaxblood()))
            && (this.getRolemaxmagic() == null ? other.getRolemaxmagic() == null : this.getRolemaxmagic().equals(other.getRolemaxmagic()))
            && (this.getRolerecoverymagic() == null ? other.getRolerecoverymagic() == null : this.getRolerecoverymagic().equals(other.getRolerecoverymagic()))
            && (this.getRolemaxshiled() == null ? other.getRolemaxshiled() == null : this.getRolemaxshiled().equals(other.getRolemaxshiled()))
            && (this.getRoleattack() == null ? other.getRoleattack() == null : this.getRoleattack().equals(other.getRoleattack()))
            && (this.getRoledefence() == null ? other.getRoledefence() == null : this.getRoledefence().equals(other.getRoledefence()))
            && (this.getRolefivetype() == null ? other.getRolefivetype() == null : this.getRolefivetype().equals(other.getRolefivetype()))
            && (this.getRolebasemaxmomentum() == null ? other.getRolebasemaxmomentum() == null : this.getRolebasemaxmomentum().equals(other.getRolebasemaxmomentum()))
            && (this.getRolebaseminmomentum() == null ? other.getRolebaseminmomentum() == null : this.getRolebaseminmomentum().equals(other.getRolebaseminmomentum()))
            && (this.getRolesual() == null ? other.getRolesual() == null : this.getRolesual().equals(other.getRolesual()))
            && (this.getRolemaxsual() == null ? other.getRolemaxsual() == null : this.getRolemaxsual().equals(other.getRolemaxsual()))
            && (this.getRolesualrecovery() == null ? other.getRolesualrecovery() == null : this.getRolesualrecovery().equals(other.getRolesualrecovery()))
            && (this.getRoleexperiences() == null ? other.getRoleexperiences() == null : this.getRoleexperiences().equals(other.getRoleexperiences()))
            && (this.getRolelevel() == null ? other.getRolelevel() == null : this.getRolelevel().equals(other.getRolelevel()))
            && (this.getRolemurder() == null ? other.getRolemurder() == null : this.getRolemurder().equals(other.getRolemurder()))
            && (this.getRolemurderlevel() == null ? other.getRolemurderlevel() == null : this.getRolemurderlevel().equals(other.getRolemurderlevel()))
            && (this.getStateid() == null ? other.getStateid() == null : this.getStateid().equals(other.getStateid()))
            && (this.getRolesmalstate() == null ? other.getRolesmalstate() == null : this.getRolesmalstate().equals(other.getRolesmalstate()))
            && (this.getRolemaxstate() == null ? other.getRolemaxstate() == null : this.getRolemaxstate().equals(other.getRolemaxstate()))
            && (this.getRolestateexperies() == null ? other.getRolestateexperies() == null : this.getRolestateexperies().equals(other.getRolestateexperies()))
            && (this.getRoleluck() == null ? other.getRoleluck() == null : this.getRoleluck().equals(other.getRoleluck()))
            && (this.getRolelingshinum() == null ? other.getRolelingshinum() == null : this.getRolelingshinum().equals(other.getRolelingshinum()))
            && (this.getRolexianyunum() == null ? other.getRolexianyunum() == null : this.getRolexianyunum().equals(other.getRolexianyunum()))
            && (this.getRolecreattime() == null ? other.getRolecreattime() == null : this.getRolecreattime().equals(other.getRolecreattime()))
            && (this.getSoultime() == null ? other.getSoultime() == null : this.getSoultime().equals(other.getSoultime()))
            && (this.getStorelingqi() == null ? other.getStorelingqi() == null : this.getStorelingqi().equals(other.getStorelingqi()))
            && (this.getStorelingqilimit() == null ? other.getStorelingqilimit() == null : this.getStorelingqilimit().equals(other.getStorelingqilimit()))
            && (this.getLingquanlocation() == null ? other.getLingquanlocation() == null : this.getLingquanlocation().equals(other.getLingquanlocation()))
            && (this.getGonglocation() == null ? other.getGonglocation() == null : this.getGonglocation().equals(other.getGonglocation()))
            && (this.getLiqitime() == null ? other.getLiqitime() == null : this.getLiqitime().equals(other.getLiqitime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoleid() == null) ? 0 : getRoleid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getRolename() == null) ? 0 : getRolename().hashCode());
        result = prime * result + ((getRolesex() == null) ? 0 : getRolesex().hashCode());
        result = prime * result + ((getRoletype() == null) ? 0 : getRoletype().hashCode());
        result = prime * result + ((getRoleage() == null) ? 0 : getRoleage().hashCode());
        result = prime * result + ((getRolemaxblood() == null) ? 0 : getRolemaxblood().hashCode());
        result = prime * result + ((getRolemaxmagic() == null) ? 0 : getRolemaxmagic().hashCode());
        result = prime * result + ((getRolerecoverymagic() == null) ? 0 : getRolerecoverymagic().hashCode());
        result = prime * result + ((getRolemaxshiled() == null) ? 0 : getRolemaxshiled().hashCode());
        result = prime * result + ((getRoleattack() == null) ? 0 : getRoleattack().hashCode());
        result = prime * result + ((getRoledefence() == null) ? 0 : getRoledefence().hashCode());
        result = prime * result + ((getRolefivetype() == null) ? 0 : getRolefivetype().hashCode());
        result = prime * result + ((getRolebasemaxmomentum() == null) ? 0 : getRolebasemaxmomentum().hashCode());
        result = prime * result + ((getRolebaseminmomentum() == null) ? 0 : getRolebaseminmomentum().hashCode());
        result = prime * result + ((getRolesual() == null) ? 0 : getRolesual().hashCode());
        result = prime * result + ((getRolemaxsual() == null) ? 0 : getRolemaxsual().hashCode());
        result = prime * result + ((getRolesualrecovery() == null) ? 0 : getRolesualrecovery().hashCode());
        result = prime * result + ((getRoleexperiences() == null) ? 0 : getRoleexperiences().hashCode());
        result = prime * result + ((getRolelevel() == null) ? 0 : getRolelevel().hashCode());
        result = prime * result + ((getRolemurder() == null) ? 0 : getRolemurder().hashCode());
        result = prime * result + ((getRolemurderlevel() == null) ? 0 : getRolemurderlevel().hashCode());
        result = prime * result + ((getStateid() == null) ? 0 : getStateid().hashCode());
        result = prime * result + ((getRolesmalstate() == null) ? 0 : getRolesmalstate().hashCode());
        result = prime * result + ((getRolemaxstate() == null) ? 0 : getRolemaxstate().hashCode());
        result = prime * result + ((getRolestateexperies() == null) ? 0 : getRolestateexperies().hashCode());
        result = prime * result + ((getRoleluck() == null) ? 0 : getRoleluck().hashCode());
        result = prime * result + ((getRolelingshinum() == null) ? 0 : getRolelingshinum().hashCode());
        result = prime * result + ((getRolexianyunum() == null) ? 0 : getRolexianyunum().hashCode());
        result = prime * result + ((getRolecreattime() == null) ? 0 : getRolecreattime().hashCode());
        result = prime * result + ((getSoultime() == null) ? 0 : getSoultime().hashCode());
        result = prime * result + ((getStorelingqi() == null) ? 0 : getStorelingqi().hashCode());
        result = prime * result + ((getStorelingqilimit() == null) ? 0 : getStorelingqilimit().hashCode());
        result = prime * result + ((getLingquanlocation() == null) ? 0 : getLingquanlocation().hashCode());
        result = prime * result + ((getGonglocation() == null) ? 0 : getGonglocation().hashCode());
        result = prime * result + ((getLiqitime() == null) ? 0 : getLiqitime().hashCode());
        return result;
    }
}